Release 10.1A: OpenEdge Data Management:
Database Administration
PROUTIL CONVFILE qualifier
Converts a text file from one character set to any other character set.
Syntax
Parameters
file-nameSpecifies the name of the file you are converting or analyzing.
convert usingtable-nameSpecifies the name of the file containing the conversion table. This file requires the following format:
where
source-codepage-nameis the name of the character set offile-name, andtarget-codepage-nameis the name of the desired character set forfile-name.The conversion table is composed of 256 cells, numbering from 0 to 255. You can build your own conversion table, or you can use default tables stored in the
DLC/prolangdirectory if appropriate. The tables inDLC/prolangare as follows:
- 1250-852.dat — Converts from code page 1250 to IBM code page 852.
- 1250-il2.dat — Converts from code page 1250 to iso8859-2.
- 1254-857.dat —Converts from IBM code page 1254 to code page 857.
- 852-1250.dat — Converts from IBM code page 852 to code page 1250.
- 852-il2.dat — Converts from IBM code page 852 to iso8859-2.
- 857-1254.dat — Converts from IBM code page 857 to code page 1254.
- cn850.dat — Converts iso8859-1 to IBM code page 850.
- cn8859-1.dat — Converts IBM code page 850 to iso8859-1.
- cnnull.dat — Performs no conversion; you might want to use this file as a template file for creating new conversion tables.
- il2-1250.dat — Converts from iso8859-2 to code page 1250.
- il2-852.dat — Converts from iso8859-2 to IBM code page 852.
If you create your own conversion table, you must understand how PROUTIL CONVFILE uses the table. For each character in
file-name, PROUTIL CONVFILE uses the character’s numeric value to index it against the table. When it locates the corresponding cell, PROUTIL CONVFILE replaces the character in the text file with the character value in that cell. Therefore, you must make a copy of the text file before you run the PROUTIL CONVFILE utility, because if the utility does not completely convert the file, the data in it is corrupted.analyzeDisplays the number of occurrences of each character in
file-name. You might be able to determine the character set offile-nameby comparing the output of this option against different code pages.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |